package des.yordan.mihaylov;

/**
 * @author Yordan Mihaylov
 * @version 2011/06/07
 */

public class DCounter extends Counter {

	public void count(double value) {
		sumPowerOne += value;
		// sumPowerTwo += value * value;

		max = Math.max(max, sumPowerOne);
		min = Math.min(min, sumPowerOne);
		count++;
	}

	public double getMean() {
		return sumPowerOne / count;
	}

}
